{% extends "layout.html" %} 
{% block subtitle %}Got it{% endblock %}
{% block content %}
{{super()}}
<p><td align="center">
<form action="search" method="get">
<input type="text" size="40" id="keywords" name="keywords" placeholder="type anything else to search.." />
<input type="submit" value="submit" />
</form>
</p>
<p>您输入的关键词是：<b>{{keywords}}</b>，{% if sr.hits%}共找到{{sr.length}}篇文档{% else %}啊偶！没有找到相关文档哦{% endif %}</p>
<p>此次搜索共花费{{sr.took}}ms</p>
{% if sr.hits %}
<ul>
{% for i in sr.hits %}
<li><a href="{{i.url()}}" target="_blank">{{i.title}}</a></li>
<p>{{i.brief()}}</p>
<p>{{i.original_from}}</p>
<p>文档匹配度：{{i.score}}</p>
{% endfor %}
</ul>
{% endif %}
{% endblock %}